package org.belkodevelop.photo.dto;

import org.belkodevelop.photo.domen.Photo;

/**
 * @author VMozolev
 */
public class PhotoUploadStatus {

    public final static String CODE_INVALID_EXTENSION = "INVALID_EXTENSION";

    private boolean error;
    private String message;
    private String code;
    private Long photoId;

    public PhotoUploadStatus(boolean error, Long photoId) {
        this.error = error;
        this.photoId = photoId;
    }

    public PhotoUploadStatus(boolean error, String message, String code) {
        this.setError(error);
        this.setMessage(message);
        this.setCode(code);
    }

    public boolean isError() {
        return error;
    }

    public void setError(boolean error) {
        this.error = error;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }
}
